/*
 * @Author: ziqi jhzq12345678
 * @Date: 2025-01-21 09:35:51
 * @LastEditors: ziqi jhzq12345678
 * @LastEditTime: 2025-01-21 09:38:11
 * @FilePath: /pornhub_app/lib/model/merchat/merchat_model.dart
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
class MerchatModel {
  String? coverImg;
  String? createdAt;
  String? id;
  String? location;
  int? mainId;
  int? merchantId;
  String? merchantName;
  int? status;
  List<String>? tags;
  String? updatedAt;

  MerchatModel(
      {coverImg,
      createdAt,
      id,
      location,
      mainId,
      merchantId,
      merchantName,
      status,
      tags,
      updatedAt});

  MerchatModel.fromJson(Map<String, dynamic> json) {
    coverImg = json['coverImg'];
    createdAt = json['createdAt'];
    id = json['id'];
    location = json['location'];
    mainId = json['mainId'];
    merchantId = json['merchantId'];
    merchantName = json['merchantName'];
    status = json['status'];
    if (json['tags'] != null) {
      tags = <String>[];
      json['tags'].forEach((v) {
        tags!.add(v);
      });
    }
    updatedAt = json['updatedAt'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['coverImg'] = coverImg;
    data['createdAt'] = createdAt;
    data['id'] = id;
    data['location'] = location;
    data['mainId'] = mainId;
    data['merchantId'] = merchantId;
    data['merchantName'] = merchantName;
    data['status'] = status;
    data['tags'] = tags;
    data['updatedAt'] = updatedAt;
    return data;
  }
}
